package com.cyh.regex;

import org.junit.Test;

/**
 * Created by yanhuche on 4/1/2017.
 */
public class RegexDotTest01 {


    @Test
    public void test_01() {
        System.out.println("a " + ".".matches("\\."));
        System.out.println("b " + "X".matches("\\."));

        System.out.println("c " + ".".matches("."));
        System.out.println("d " + "X".matches("."));
    }

    @Test
    public void test_02() {
        System.out.println("a " + "2.jar".matches("(\\d+\\.){1,}jar"));
        System.out.println("b " + "2_jar".matches("(\\d+.){1,}jar"));
    }


}
